<?php 
   
    //设置编码
    header("content-Type:text/html;charset=utf-8");
    
    //设置根目录
    define("ROOT_PATH",dirname(__FILE__));
    //设置模板文件目录
    define("TPL_DIR",ROOT_PATH.'/templates/');
    //设置模板文件目录
    define("TPL_C_DIR",ROOT_PATH.'/templates_c/');
    //设置模板文件目录
    define("CACHE_DIR",ROOT_PATH.'/cache/');

    include('includes/Mysmarty.class.php');

    $tpl=new Mysmarty();

    $tpl->assign("name","yuchapz");
    $tpl->assign("age","12");

    $tpl->display("index.html");



?>